<?php

class m111223_041538_add_field_to_camera extends CDbMigration {

	// Use safeUp/safeDown to do migration with transaction
	public function safeUp() {
		$this->addColumn('Camera', 'ipAddress', 'string');
		$this->addColumn('Camera', 'channel', 'integer');
	}

	public function safeDown() {
		$this->dropColumn('Camera', 'ipAddress');
		$this->dropColumn('Camera', 'channel');
	}

}